﻿using System.Windows;

using YsTiffConverter.ViewModel;

namespace YsTiffConverter
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        #region Fields

        private readonly MainWindowViewModel viewModel_;
        #endregion Fields

        #region Constructors

        public MainWindow()
        {
            InitializeComponent();

            viewModel_ = new MainWindowViewModel();
            DataContext = viewModel_;
        }

        #endregion Constructors

        #region Methods

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
        }

        private void CommandExitClick(object sender, RoutedEventArgs e)
        {
            Close();
        }

        private void MenuItemAbout_Click(object sender, RoutedEventArgs e)
        {
            (new AboutWindow
                 {
                     Owner = this
                 }).ShowDialog();
        }

        #endregion Methods
    }
}
